package com.dk.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wbh
 * @since 2023-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pd_report")
public class Report implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报工id
     */
      @TableId(value = "report_id", type = IdType.AUTO)
    private Integer reportId;

    /**
     * 报工类型
     */
    @TableField("report_type")
    private String reportType;

    /**
     * 工单id
     */
    @TableField("work_id")
    private String workId;

    /**
     * 排产id
     */
    @TableField("scheduld_id")
    private String scheduldId;

    /**
     * 产品物料id
     */
    @TableField("material_id")
    private String materialId;

    /**
     * 产品物料名称
     */
    @TableField("material_name")
    private String materialName;

    /**
     * 产品单位
     */
    @TableField("material_unit")
    private String materialUnit;

    /**
     * 产品规格
     */
    @TableField("material_spec")
    private String materialSpec;

    /**
     * 报工数量
     */
    @TableField("report_num")
    private Integer reportNum;

    /**
     * 合格数量
     */
    @TableField("success_num")
    private Integer successNum;

    /**
     * 失败数量
     */
    @TableField("fail_num")
    private Integer failNum;

    /**
     * 报工人
     */
    @TableField("report_personId")
    private Integer reportPersonid;

    @TableField("report_date")
    private Date reportDate;

    /**
     * 审核人
     */
    @TableField("check_personId")
    private Integer checkPersonid;

    /**
     * 报工备注
     */
    @TableField("report_remark")
    private String reportRemark;

    /**
     * 报工状态
     */
    @TableField("report_state")
    private String reportState;

    @TableField("workstations_id")
    private String workstationsId;

    @TableField(value = "count",exist = false)
    private Integer count;

    @TableField(value = "workstation_name",exist = false)
    private String workstationName;


}
